package com.sxfans.designmodel.structed.proxy;

public class ProxyFactory{
	private ITarget target;
	private IAfter after;
    private IBefore before;
	
	public void show() {
		if(before != null)
		{
			before.before();
		}
		target.show();
		if(after != null)
		{
			after.after();
		}
		
	}

	public ITarget getTarget() {
		return target;
	}

	public void setTarget(ITarget target) {
		this.target = target;
	}

	public IAfter getAfter() {
		return after;
	}

	public void setAfter(IAfter after) {
		this.after = after;
	}

	public IBefore getBefore() {
		return before;
	}

	public void setBefore(IBefore before) {
		this.before = before;
	}
	
	
}
